<template>
    <view class="container">
        <image src="../static/images/picture3.jpg" class="img" :class="{animated:addAnimation,slower:addAnimation,fadeIn:addAnimation}"></image>
        <view>
           <p :class="{animated:addAnimation,slower:addAnimation,fadeIn:addAnimation}" class="delay-1s">哪有那么多一夜成名，全都是百炼成钢</p>
           <p :class="{animated:addAnimation,slower:addAnimation,fadeIn:addAnimation}" class="delay-2s">真正重要的东西用眼睛看不到的，事物的本质要用心灵才能看的见</p>
        </view>
    </view>
</template>
<script>
	import $ from 'jquery'
export default {
    name:'componentThree',
    computed:{
        addAnimation(){
            if (this.$store.state.hasAnimated.name=='touch2' && this.$store.state.hasAnimated.hasAnimats) {
                return true  
            }else{
                return false
            }
        }
    }
}
</script>
<style lang="scss" scoped>
    .container{
        background: url(/static/images/bg_1.png) no-repeat;
        background-size: cover;
        text-align: center;
        .img{
            width:7rem;
            margin:.6rem 0;
        }
        p{
            font-size: .32rem;
            line-height: .48rem;
            color:#666;
            margin: 1rem;
            text-align: center;
        }
    }
</style>
